package com.ruoyi.cart.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户优惠券对象 shop_user_shops_coupon
 *

 * @date 2023-07-23
 */
public class UserShopsCoupon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商家编号 */
    @Excel(name = "商家编号")
    private Long shopsId;

    /** 用户编号 */
    @Excel(name = "用户编号")
    private Long userId;

    /** 优惠券编号 */
    @Excel(name = "优惠券编号")
    private Long couponId;

    /** 领取时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "领取时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectionTime;

    /** 使用状态 */
    @Excel(name = "使用状态")
    private String status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setShopsId(Long shopsId)
    {
        this.shopsId = shopsId;
    }

    public Long getShopsId()
    {
        return shopsId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setCouponId(Long couponId)
    {
        this.couponId = couponId;
    }

    public Long getCouponId()
    {
        return couponId;
    }
    public void setCollectionTime(Date collectionTime)
    {
        this.collectionTime = collectionTime;
    }

    public Date getCollectionTime()
    {
        return collectionTime;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("shopsId", getShopsId())
            .append("userId", getUserId())
            .append("couponId", getCouponId())
            .append("collectionTime", getCollectionTime())
            .append("status", getStatus())
            .toString();
    }
}
